var tip=angular.module("tip",[]);
tip.directive('tip',function(){
    return {
        restrict : 'EA',
        transclude : true,
        scope : {
            conf : '='
        },
        templateUrl:'page/directive/tip.html',
        link : function(scope, element, attrs) {
            scope.conf.showTipContent=false;
            scope.hideTipContent = function(close) {
                scope.conf.showTipContent =false;
                    //确定按钮自定义事件
                    if(close==null&&scope.conf.clickfunction){
                        scope.conf.clickfunction();
                    }
            }


        }
    }
})
